.trace-list-container {
  padding: 20px;
  box-sizing: border-box;
}

/* 页面标题 */
.page-header {
  margin-bottom: 20px;
  .page-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #303133;
  }
}

/* 搜索卡片 */
.search-card {
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  .search-form {
    .el-form-item {
      margin-right: 20px;
      margin-bottom: 0;
    }
    .search-input {
      width: 220px;
    }
    .search-select {
      width: 220px;
    }
  }
  .search-buttons {
    display: flex;
    align-items: center;
  }
}

/* 数据卡片 */
.data-card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  .table-toolbar {
    margin-bottom: 15px;
    padding: 10px 0;
    display: flex;
    justify-content: flex-start;
    .el-button {
      margin-right: 10px;
    }
  }

  /* 表格样式 */
  .data-table {
    width: 100%;
    border-radius: 4px;
    .trace-content-cell {
      display: flex;
      align-items: center;
      .el-icon {
        margin-right: 5px;
        color: #67c23a;
      }
      .text-ellipsis {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
      }
    }
    .table-action-column {
      text-align: center;
    }
  }

  /* 分页样式 */
  .pagination-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
  }
}

/* 抽屉样式 */
.drawer-content {
  padding: 20px;
  .trace-form {
    .el-form-item {
      margin-bottom: 20px;
    }
  }
}

/* 按钮样式规范 */
.add-button {
  background-color: #67c23a !important;
  border-color: #67c23a !important;
  color: #ffffff !important;
}

.view-button {
  background-color: #409eff !important;
  border-color: #409eff !important;
  color: #ffffff !important;
}

.delete-button {
  background-color: #f56c6c !important;
  border-color: #f56c6c !important;
  color: #ffffff !important;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
  .trace-list-container {
    padding: 15px;
  }
  .search-form .search-input,
  .search-form .search-select {
    width: 180px;
  }
}

@media screen and (max-width: 768px) {
  .trace-list-container {
    padding: 10px;
  }
  .search-form {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .search-form .el-form-item {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }
  .search-form .search-input,
  .search-form .search-select {
    width: 100%;
  }
  .search-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .trace-list-container {
    padding: 10px;
  }
  .search-form {
    .el-form-item {
      margin-right: 0 !important;
      margin-bottom: 10px !important;
    }
  }
  .data-table {
    height: calc(100vh - 380px) !important;
  }
}
